package com.daidai.service;

import com.daidai.model.AssociationMemberDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author: Mr.Chen
 * Date: 2022/08/01 16:21
 * Description:
 */
public interface AssociationMemberService {
    AssociationMemberDTO findMemberById(@Param("id") int id);

    int findAssociationIdByUserId(@Param("userId") int userId);

    String findPresidentDesByAssid(@Param("associationId") int associationId);

    List<String> findVicePresidentDesByAssid(@Param("associationId") int associationId);

    List<String> findMinisterDesByAssid(@Param("associationId") int associationId);

    List<AssociationMemberDTO> findAllMember();

    List<AssociationMemberDTO> findMemberByUserId(@Param("userId") int userId);

    void deleteUser(@Param("id") int id);

    void updateAm(@Param("userId") int userId, @Param("position") int position, @Param("description") String description);

    void updatePresidentByAssociationId(@Param("userId") int userId, @Param("associationId") int associationId);
}
